/*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is: CalemEAM MicroLocale
*
* The Initial Developer of the Original Code is CalemEAM Inc.
* Portions created by CalemEAM are Copyright (C) 2008 CalemEAM Inc.
* All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK *****
*/

package com.calemeam.text;

/**
 * Provides a factory repository for Res and FP providers.
 * @author cli
 */
public class MicroFactory {
   private static MicroFactoryIf factory;
   private static MicroResIf res;
   
   public static void setFactory(MicroFactoryIf fac) {
      factory=fac;
   }
   
   /**
    * Static factory methods
    */
   public static MicroResIf getRes() {
      if (res==null) res=factory.getRes();
      return res;
   }
}